/* jshint esversion: 6 */
export function setStorage(name,content){
	if(!name){
		return;
	}
	if(typeof content !== 'string'){
		content = JSON.stringify(content);
	}
	return localStorage.setItem(name,content);
}

export function getStorage(name){
	if(!name){
		return;
	}
	return JSON.parse(localStorage.getItem(name));
}

export function removeStorage(name){
	if(!name){
		return;
	}
	return localStorage.removeItem(name);
}